package model 
{
	import flash.automation.ActionGenerator;
	/**
	 * ...
	 * @author Yang Wang
	 */
	public class Point 
	{
		
		private var m_X:int;
		private var m_Y:int;
		
		public function Point(x:int, y:int) 
		{
			m_X = x;
			m_Y = y;
		}
		
		public function equals(obj:Object) : Boolean
		{
			if (obj is Point) {
				var pt:Point = obj as Point;
				
				if (pt.m_X == m_X && pt.m_Y == m_Y)
					return true;
			}
			
			return false;
		}
		
		public function get X():int 
		{
			return m_X;
		}
		
		public function get Y():int 
		{
			return m_Y;
		}
		
		public function toString() : String {
			return "(" + this.X + "," + this.Y + ")";
		}
	}

}